package dao;


import entity.TopicInfo;
import entity.page.DetailPage;
import entity.page.IndexPage;
import entity.page.ListPage;

import java.util.ArrayList;

public interface TopicDao {
    IndexPage getALLTopicLastTimeById(Integer sId);

    DetailPage getTopicInfoAndUserInfoById(Integer tid);

    ArrayList<ListPage> getTopicInfobyid(Integer sid);
    ArrayList<TopicInfo> getTopicInfo(int sid);

    void insertTopicInfo(String send_title, String send_content, Integer child_sid, Integer uid);

    void getTopicCountById(Integer child_sid);

    void modifyTopicInfo(String send_title, String send_content, Integer child_sid, Integer uid, Integer tid);

    void deleteTopicById(Integer tId);

    void getRepltCountByid(int child_sid);
    boolean deleteReplyById(Integer tId);
}
